package tech.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import tech.aistar.entity.Classs;
import tech.aistar.mapper.ClasssMapper;
import tech.aistar.service.IClassService;

import java.util.List;

/**
 * Created by Administrator on 2019/10/11.
 */
@Service
@Transactional
public class ClassServiceImpl implements IClassService{

    @Autowired
    private ClasssMapper classsMapper;

    @Override
    public List<Classs> findAllClass() {
        return classsMapper.findAllClass();
    }

    @Override
    public Classs findClassById(Integer classId) {
        return classsMapper.findClassById(classId);
    }
}
